package cn.com.cifi.mars.constant;

public enum LogSrcEnum {

	APP("APP","移动端"),
	PC("PC","PC端"),
    SYS("SYS","系统")
    ;

    private String key;
    private String value;

    LogSrcEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(String key){
        for(LogSrcEnum versionTypeEunm:LogSrcEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
    
    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }


}
